#pragma once
#include "MsgDef.h"

struct HeadInfo{
	uint bodySize;
	int msgType;
};

struct Vec2i{
	int x;
	int y;
};

enum MouseBtnInfo {
	NoButton = 0x00000000,
	LeftButton = 0x00000001,
	RightButton = 0x00000002,
	MiddleButton = 0x00000004,
};

enum MouseActionInfo
{
	IDLE_ACTION,
	PRESS,
	RELEASE,
	CLICK,
	MOVE,
	ENTER,
	LEAVE,
	DRAG_ENTER,
	DRAG_LEAVE,
	DRAG_MOVE,
	DROP,
	WHEEL_UP,
	WHEEL_DOWN
};

struct MouseCmd{
	Vec2i mousePos;
	int btnInfo;
	int actionInfo;
	MouseCmd(){
		mousePos.x = -1;
		mousePos.y = -1;
		btnInfo = -1;
		actionInfo = -1;
	}
};

struct SizeInfo{
	int width;
	int height;

	SizeInfo(){
		this->width = 0;
		this->height = 0;
	}

	SizeInfo(int width, int height){
		this->width = width;
		this->height = height;
	}
};